package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author gusongliao
 * @email gu_song_liao@163.com
 * @date 2023-06-07 23:53:53
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询所有商品分类并以 树形结构展示
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     * 删除菜单
     * @param asList
     */
    void removeMenuByIds(List<Long> asList);

    List<Long> getCategoryPath(Long attrGroupId);

    /**
     * 级联更新
     * @param category
     */
    void updateCascade(CategoryEntity category);
}

